    package myjavaapplication1;

import java.util.*;
import java.io.*;
import java.lang.*;
import javax.swing.JDialog;
import javax.swing.JOptionPane;


public class ReceiveConversion { 

    public static String[] easy = new String[20]; //this number can be bigger it is just the number of data points
    public static String[] ripper = new String[12];  //this number can be overestimated (the correct size is the best), make sure you dont print "null"'s
    public static int count = 0;

    public static void main(String[] args) {

        String data = "00000071,0,00140C028900,1,FFFFFFFFFFFF,2,FFFFFFFFFFFF,3,FFFFFFFFFFFF,4,FFFFFFFFFFFF,5,FFFFFFFFFFFF,6,FFFFFFFFFFFF,7,FFFFFFFFFFFF,";

        System.out.println(Convert(data));
    }

    public static String[] Convert(String data) {
        String[] temp = data.split(",");

        int count = 0;
        for (int x = 0; x < temp.length; x++) {
            if (x % 2 == 0 && temp[x] != null) {
                ripper[count] = temp[x];
                count++;
            }
        }

        for (int x = 0; x < ripper.length; x++) {
            System.out.println(ripper[x]);
        }

        return ripper;

    }
}
